import VueRouter from 'vue-router'

import home from './page/home.vue'
import menber from './page/menber.vue'
import search from './page/search.vue'
import shoopcar from './page/shoopcar.vue'

import newlist from './page/newlist.vue'
import newinfo from './page/newinfo.vue'

import photolist from './page/photolist.vue'
import photoinfo from './page/photoinfo.vue'


import goodslist from './page/goodslist.vue'
import goodsinfo from './page/goodsinfo.vue'


import goodssuggest from './page/goodssuggest.vue'
import goodscomment from './page/goodscomment.vue'

//············································································


var router = new VueRouter({
	routes: [{
		path: '/',
		redirect: '/home'
	},
	{
		path: '/home',
		component: home
	},
	{
		path: '/menber',
		component: menber
	},
	{
		path: '/search',
		component: search
	},
	{
		path: '/shoopcar',
		component: shoopcar
	},
	{
		path: '/home/newlist',
		component: newlist
	},
	{
		path: '/home/newlist/newinfo/:id',
		component: newinfo
	},
	{
		path: '/home/photolist',
		component: photolist
	},

	{
		path: '/home/photolist/potoinfo/:id',
		component: photoinfo
	},

	{
		path: '/home/goodslist',
		component: goodslist
	},
	{
		path: '/home/goodslist/goodsinfo/:id',
		component: goodsinfo,
		name: 'GoodsInfo'
	},
	{
		path: '/home/goodslist/goodsinfo/goodssuggest/:id',
		component: goodssuggest,
		name: 'goodssuggest'
	},
	{
		path: '/home/goodslist/goodsinfo/goodscomment/:id',
		component: goodscomment,
		name: 'goodscomment'
	}

	],
	linkActiveClass: 'mui-active', //切换类的高亮

})

export default router